package com.song.controller.feign;

import com.song.service.FeignService;
import com.song.vo.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.websocket.server.PathParam;

/**
 * @Author Klys
 * @Date 2023/5/29 11:02
 * @Description
 * @Version 1.0
 */
@Controller
public class FeignController {

    @Autowired
    private FeignService feignService;

    @PostMapping("/rpc01")
    @ResponseBody
    CommonResult rpc01(@PathParam("parm") String parm) {
        return feignService.rpc01(parm);
    }
}
